package com.site.wisdom_construction.service.qualityModule;

import com.site.wisdom_construction.controller.batchUploadModel.qualityBatchUpload.QualityBatchUploadData;
import com.site.wisdom_construction.dao.qualityModule.QualityRiskSourceDao;
import com.site.wisdom_construction.entity.qualityModule.QualityRiskSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/15
 * @Description
 */
@Service
public class QualityRiskSourceService implements QualityRiskSourceDao {
    @Autowired
    private QualityRiskSourceDao qualityRiskSourceDao;

    @Override
    public int insertQualityRiskSource(Map map) {
        return qualityRiskSourceDao.insertQualityRiskSource(map);
    }

    @Override
    public int insertBatchQualityRiskSource(List<QualityBatchUploadData> qualityBatchUploadDataList) {
        return qualityRiskSourceDao.insertBatchQualityRiskSource(qualityBatchUploadDataList);
    }

    @Override
    public int deleteQualityRiskSource(Map map) {
        return qualityRiskSourceDao.deleteQualityRiskSource(map);
    }

    @Override
    public int updateQualityRiskSource(Map map) {
        return qualityRiskSourceDao.updateQualityRiskSource(map);
    }

    @Override
    public List<QualityRiskSource> findQualityRiskSourceByPage(Map map) {
        return qualityRiskSourceDao.findQualityRiskSourceByPage(map);
    }

    @Override
    public long Total(Map map) {
        return qualityRiskSourceDao.Total(map);
    }

    @Override
    public List<QualityRiskSource> selectQualityRiskSource(Map map) {
        return qualityRiskSourceDao.selectQualityRiskSource(map);
    }

    @Override
    public QualityRiskSource findQualityRiskSourceById(Map map) {
        return qualityRiskSourceDao.findQualityRiskSourceById(map);
    }
}
